home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950929-19951130 / 000018_news@columbia.edu_Wed Oct 4 22:06:49 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA28007
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 4 Oct 1995 18:32:40 -0400
  3. Received: by apakabar.cc.columbia.edu id AA14420
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 4 Oct 1995 18:32:38 -0400
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!spool.mu.edu!howland.reston.ans.net!swrinde!cs.utexas.edu!news.ti.com!news.itg.ti.com!usenet
  6. From: rusty%@columbia.edu  (Rusty Haddock)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: 'set key' in CKermit:OS/2
  9. Date: 4 Oct 1995 22:06:49 GMT
  10. Organization: 1/entropy
  11. Lines: 45
  12. Distribution: world
  13. Message-Id: <44v0hp$djq@dsk92.itg.ti.com>
  14. Reply-To: rusty@ti.com (Rusty Haddock)
  15. Nntp-Posting-Host: iefm770.itg.ti.com
  16. X-Newsreader: IBM NewsReader/2 v1.2
  17. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  18.  
  19. Maybe I've missed something but there appears to be a "misfeature" about
  20. the way the keycode in the 'set key' command is parsed in CKermit
  21. 5A(191) for at least the OS/2 version.   Under OS/2 I wanted to use the
  22. Shift-PageUp and Shift-PageDn keys for scrolling through the screen
  23. buffer.  Normally, I use the PageUp and PageDn keys but they're assigned
  24. in the "Emacskey.ini" file, thusly I went with the Shifted keys.  To get
  25. the keycodes I did:
  26.  
  27.     show key  <Return>
  28.     Press key:
  29.     [Press <S-PageUp>]
  30.     Key code \841 => Undefined
  31.  
  32. So I tried:
  33.  
  34.     set key \841 
  35.  
  36. Bang!  As soon as I hit the <SPACE> after the \841 CKermit comes back
  37. and says
  38.  
  39.     ?Invalid: set key \841
  40.  
  41. Errr???   It just gave me that keycode.   Hmmm... at first I thought,
  42. Oh, that's s'pose to be octal but on second thought realized that this
  43. was Kermit and that number was really decimal.
  44.  
  45. Luckily there is a work around!  Convert the keycode to Hex and the
  46. command is accepted.   hex(841) --> 0x349, so:
  47.  
  48.     set key \x349 \Kupscn
  49.  
  50. Same thing goes for the Shift-PageDown keycode (\849).  Converting
  51. it to hex \x351 also works while the \849 doesn't.  <sigh>
  52.  
  53. While I'm in here I may as well ask for at least a quick explanation
  54. and listing of the available \K functions (like \Kupscn) in the "Using
  55. C-Kermit" book in the next edition.  Please?   Thanks for reading.
  56.  
  57.     -Rusty-
  58. --
  59. Rusty Haddock, KD4WLZ    MSGID:  MWH2           ___
  60. Texas Instruments    Internet: rusty@ti.com    |\/  o\  O
  61. POB 869305  MS 8515    Phone: (214) 575-6838    |  ( -< o O
  62. Plano, Texas  75086    Fax:   (214) 575-4351    |/\_V_/
  63.